package org.uned.agonzalo16.bitacora.web.user;

import org.hibernate.validator.constraints.NotBlank;
import org.uned.agonzalo16.bitacora.domain.User;

public class ChangePasswordForm {

	private long id;

	@NotBlank
	private String oldPassword;

	@NotBlank
	private String newPassword;

	@NotBlank
	private String repeatPassword;

	public ChangePasswordForm() {
	}

	public ChangePasswordForm(User user) {
		id = user.getId();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getRepeatPassword() {
		return repeatPassword;
	}

	public void setRepeatPassword(String repeatPassword) {
		this.repeatPassword = repeatPassword;
	}
}
